package cn.wx.common.persistence.base;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.List;

/**
 * @description : 实体基类 ---------------------------------
 * @author zj
 * @since 2017-10-27
 */
public class BaseEntity {

	@TableId(value = "pId", type = IdType.AUTO)
	private Long pId;// 物理主键

	private Long fId;

	@TableField(exist = false)
	@JSONField(serialize = false)
	private List<Long> pIds;

	public Long getpId() {
		return pId;
	}

	public void setpId(Long pId) {
		this.pId = pId;
	}

	public List<Long> getpIds() {
		return pIds;
	}

	public void setpIds(List<Long> pIds) {
		this.pIds = pIds;
	}

	public Long getfId() {
		return fId;
	}

	public void setfId(Long fId) {
		this.fId = fId;
	}

}
